<?
/*
$query="SELECT user_niv FROM sdusers where user_id=$_USER_ID";
$resultat=mysql_query($query);
$tmp2=mysql_fetch_row($resultat);
$user_niv=$tmp2[0];  */


$query="SELECT race_id,race_name,race_sousname,race_realname,race_pic,race_pop_ini fROM urace WHERE race_niv_requis<=0";//Attention, mettre le niv de l'use
//0=Race_id-1=race name-2=race sousname-3=race realname-4=race pic-5=race_pop_ini
//echo $query;

$resultat=mysql_query($query);
$i=0;
WHILE ($tmp=mysql_fetch_array($resultat)){
$race_id[$i]=$tmp[0];
$race_name[$i]=$tmp[1];
$race_sname[$i]=$tmp[2];
$race_rname[$i]=$tmp[3];
$race_pic[$i]=$tmp[4];
$race_pop[$i]=$tmp[5];

$i++;
}//Fin du while.










$PAGE='<CENTER><div align="center" CLASS="LINE1"></div></CENTER>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000">
  <tr>
    <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" CLASS=TD2>
        <tr> 
          <td><p align="center"><strong><u><font size="6">Enregistrement de personnage.</font></u></strong></p>
            <div align="center">
              <table width="50%" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
                <tr>
                  <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" CLASS="TD1">
                      <tr> 
                        <td><div align="center"> <u><strong><font size="5">Choix 
                            de la RACE .</font></strong></u></div></td>
                      </tr>
                    </table></td>
                </tr>
              </table>
      
			
            </div>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td>
            
            <form name="form1" method="POST" action="index.php">';

     



$i=0;
 FOREACH($race_id as $race){

	$lien2='window.open(\'jeu/visualisation/include.php?p=view_race&ID=$forum[0]$race_id[$i]\', \'IFRAME_DETAIL\', \'scrollbars=yes,status=no,top=0,left=0,width=430,height=500\')';
	$PAGE='"<input type="radio" name="race" value="$race_id[$i]" onClick="$lien2">';

	$PAGE='"<a href="javascript:void(0);" onClick="$lien2">$race_rname[$i]</a><BR>';
 	$i++;
 }



               
$PAGE='<br>
              </p>

              <p align="center"> 
			  


               <input name="mode" type="hidden" id="mode" value="race">
                <input background : url(fond.jpg) type="submit" name="Submit" value="Suivant">
              </p>
            </form>
            <td>


echo"<iframe scr=\"vide.php\" NAME=\"IFRAME_DETAIL\" ID=\"IFRAME_DETAIL\" WIDTH=\"100%\" HEIGHT=\"450px\" MARGINWIDTH=0 MARGINHEIGHT=0 FRAMEBORDER=\"0\"></iframe>";




            
            
            </td>

            </tr>
      </table></td>      </tr>
      </table></td>
  </tr>
</table>
<CENTER><div align="center" CLASS="LINE1"></div></CENTER>';

ECHO $PAGE;


?>
